package com.dengxian.usercenter.service;

import com.dengxian.usercenter.model.domain.PostThumb;
import com.baomidou.mybatisplus.extension.service.IService;
import com.dengxian.usercenter.model.domain.User;

/**
* @author 86151
* @description 针对表【post_thumb(帖子点赞记录)】的数据库操作Service
* @createDate 2023-03-24 13:43:21
*/
public interface PostThumbService extends IService<PostThumb> {

    /**
     * 点赞 / 取消点赞
     *
     * @param postId
     * @param loginUser
     * @return
     */
    int doThumb(long postId, User loginUser);
}
